/*
 * @Date: 2021-12-07 17:23:42
 * @LastEditors: 邓春宜
 * @Desc: 
 * @LastEditTime: 2021-12-08 17:37:59
 * @FilePath: \web-ems\src\api\module\dictData.js
 */
import request from '../http'

const Api = {
    list: '/api/sys/dict/data/list',
    page: '/api/sys/dict/data/page',
    save: '/api/sys/dict/data/save',
    edit: '/api/sys/dict/data/edit',
    remove: '/api/sys/dict/data/remove',
    removeBatch: '/api/sys/dict/data/removeBatch',
}

export const page = data => {
    return request.request({
        url: Api.page,
        params: data,
        method: 'get'
    })
}

export const list = data => {
    return  [] ;
    return request.request({
        url: Api.list,
        params: data,
        method: 'get'
    })
}

export const save = data => {
    return request.request({
        url: Api.save,
        data: data,
        method: 'POST'
    })
}

export const edit = data => {
    return request.request({
        url: Api.edit,
        data: data,
        method: 'POST'
    })
}

export const remove = data => {
    return request.request({
        url: Api.remove,
        params: data,
        method: 'POST'
    })
}

export const removeBatch = data => {
    return request.request({
        url: Api.removeBatch,
        params: data,
        method: 'POST'
    })
}